package org.artifact.core.lang;

import co.paralleluniverse.fibers.SuspendExecution;
import org.artifact.core.context.packet.NetworkPacket;
import org.artifact.core.context.session.Session;

import java.util.function.Consumer;

public interface IModule {
	int getModuleId();
	
	Consumer<NetworkPacket> disp(Session session, NetworkPacket packet) throws SuspendExecution, InterruptedException;
}
